package com.unknowpupil.design.factory.impl;

/**
 * @Description: <br/>
 * <p>
 *基础创建者
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/24 15:16
 * @Classname: Dialog
 * @Version: 1.0
 */
public abstract class Dialog {

    public void renderWindow() {
        // ... other code ...

        Button okButton = createButton();
        okButton.render();
    }

    /**
     * Subclasses will override this method in order to create specific button
     * objects.
     */
    public abstract Button createButton();
}
